<!DOCTYPE html>
<html>
<head>
    <title>农产品列表</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="description" content="Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description.
">
    <link rel="stylesheet" href="lib/weui.min.css">
    <link rel="stylesheet" href="css/jquery-weui.css">
    <link rel="stylesheet" href="css/style.css">
</head>
<body ontouchstart>
<!--顶部搜索-->
<header class='weui-header fixed-top'>
    <div class="weui-search-bar" id="searchBar">
        <form class="weui-search-bar__form">
            <div class="weui-search-bar__box">
                <i class="weui-icon-search"></i>
                <input type="search" class="weui-search-bar__input" id="searchInput" placeholder="搜索您想要的商品" required>
                <a href="javascript:" class="weui-icon-clear" id="searchClear"></a>
            </div>
            <label class="weui-search-bar__label" id="searchText" style="transform-origin: 0px 0px 0px; opacity: 1; transform: scale(1, 1);">
                <i class="weui-icon-search"></i>
                <span>搜索您想要的商品</span>
            </label>
        </form>
        <a href="javascript:" class="weui-search-bar__cancel-btn" id="searchCancel">取消</a>
    </div>
    <div class="pro-sort">

        <div class="weui-flex">
            <div class="weui-flex__item">
                <select class="weui-select" name="select1">
                    <option selected="" value="0">供需</option>
                    <option value="2">供应</option>
                    <option value="3">需求</option>
                </select>
            </div>
            <div class="weui-flex__item">
                <select class="weui-select" name="select1">
                    <option selected="" value="0">品类</option>
                    <option value="2">水果</option>
                    <option value="3">粮油</option>
                </select>
            </div>
            <div class="weui-flex__item">
                <select class="weui-select" name="select1">
                    <option selected="" value="0">排序</option>
                    <option value="2">价格</option>
                    <option value="3">时间</option>
                </select>
            </div>
        </div>
    </div>
</header>
<!--主体-->
<div class="weui-content" style="padding-top:85px;">
    <!--产品列表--滑动加载-->
    <div class="weui-pull-to-refresh__layer">
        <div class='weui-pull-to-refresh__arrow'></div>
        <div class='weui-pull-to-refresh__preloader'></div>
        <div class="down">下拉刷新</div>
        <div class="up">释放刷新</div>
        <div class="refresh">正在刷新</div>
    </div>
    <div id="list" class='demos-content-padded proListWrap'>
        <div class="pro-items">
            <a href="pro_info.html" class="weui-media-box weui-media-box_appmsg">
                <div class="weui-media-box__hd"><img class="weui-media-box__thumb" src="pic/cp01.jpg" alt=""></div>
                <div class="weui-media-box__bd">
                    <h1 class="weui-media-box__desc">天然原味腰果 原色无漂白原味腰果仁</h1>
                    <div class="wy-pro-pri">¥<em class="num font-15">296.00</em><span>1天前</span></div>
                    <ul class="weui-media-box__info prolist-ul">
                        <li class="weui-media-box__info__meta">重庆市江北区</li>
                        <li class="weui-media-box__info__meta fr">张生生</li>
                    </ul>
                </div>
            </a>
            <span class="tip-gy">供</span>
        </div>
        <div class="pro-items">
            <a href="pro_info.html" class="weui-media-box weui-media-box_appmsg">
                <div class="weui-media-box__hd"><img class="weui-media-box__thumb" src="pic/cp02.jpg" alt=""></div>
                <div class="weui-media-box__bd">
                    <h1 class="weui-media-box__desc">天然原味腰果 原色无漂白原味腰果仁</h1>
                    <div class="wy-pro-pri">¥<em class="num font-15">296.00</em><span>1天前</span></div>
                    <ul class="weui-media-box__info prolist-ul">
                        <li class="weui-media-box__info__meta">重庆市江北区</li>
                        <li class="weui-media-box__info__meta fr">张生生</li>
                    </ul>
                </div>
            </a>
            <span class="tip-gy">供</span>
        </div>
        <div class="pro-items">
            <a href="pro_info.html" class="weui-media-box weui-media-box_appmsg">
                <div class="weui-media-box__hd"><img class="weui-media-box__thumb" src="pic/cp02.jpg" alt=""></div>
                <div class="weui-media-box__bd">
                    <h1 class="weui-media-box__desc">天然原味腰果 原色无漂白原味腰果仁</h1>
                    <div class="wy-pro-pri">¥<em class="num font-15">296.00</em><span>1天前</span></div>
                    <ul class="weui-media-box__info prolist-ul">
                        <li class="weui-media-box__info__meta">重庆市江北区</li>
                        <li class="weui-media-box__info__meta fr">张生生</li>
                    </ul>
                </div>
            </a>
            <span class="tip-xq">求</span>
        </div>
        <div class="pro-items">
            <a href="pro_info.html" class="weui-media-box weui-media-box_appmsg">
                <div class="weui-media-box__hd"><img class="weui-media-box__thumb" src="pic/cp02.jpg" alt=""></div>
                <div class="weui-media-box__bd">
                    <h1 class="weui-media-box__desc">天然原味腰果 原色无漂白原味腰果仁</h1>
                    <div class="wy-pro-pri">¥<em class="num font-15">296.00</em><span>1天前</span></div>
                    <ul class="weui-media-box__info prolist-ul">
                        <li class="weui-media-box__info__meta">重庆市江北区</li>
                        <li class="weui-media-box__info__meta fr">张生生</li>
                    </ul>
                </div>
            </a>
            <span class="tip-xq">求</span>
        </div>
        <div class="pro-items">
            <a href="pro_info.html" class="weui-media-box weui-media-box_appmsg">
                <div class="weui-media-box__hd"><img class="weui-media-box__thumb" src="pic/cp02.jpg" alt=""></div>
                <div class="weui-media-box__bd">
                    <h1 class="weui-media-box__desc">天然原味腰果 原色无漂白原味腰果仁</h1>
                    <div class="wy-pro-pri">¥<em class="num font-15">296.00</em><span>1天前</span></div>
                    <ul class="weui-media-box__info prolist-ul">
                        <li class="weui-media-box__info__meta">重庆市江北区</li>
                        <li class="weui-media-box__info__meta fr">张生生</li>
                    </ul>
                </div>
            </a>
            <span class="tip-xq">求</span>
        </div>
        <div class="pro-items">
            <a href="pro_info.html" class="weui-media-box weui-media-box_appmsg">
                <div class="weui-media-box__hd"><img class="weui-media-box__thumb" src="pic/cp02.jpg" alt=""></div>
                <div class="weui-media-box__bd">
                    <h1 class="weui-media-box__desc">天然原味腰果 原色无漂白原味腰果仁</h1>
                    <div class="wy-pro-pri">¥<em class="num font-15">296.00</em><span>1天前</span></div>
                    <ul class="weui-media-box__info prolist-ul">
                        <li class="weui-media-box__info__meta">重庆市江北区</li>
                        <li class="weui-media-box__info__meta fr">张生生</li>
                    </ul>
                </div>
            </a>
            <span class="tip-xq">求</span>
        </div>

    </div>
    <div class="weui-loadmore">
        <i class="weui-loading"></i>
        <span class="weui-loadmore__tips">正在加载</span>
    </div>


</div>



<script src="lib/jquery-2.1.4.js"></script>
<script src="lib/fastclick.js"></script>
<script>
    $(function() {
        FastClick.attach(document.body);
    });
</script>
<script src="js/jquery-weui.js"></script>
<script>
    $(document.body).pullToRefresh().on("pull-to-refresh", function() {
        setTimeout(function() {
            $("#time").text(new Date);
            $(document.body).pullToRefreshDone();
        }, 2000);
    });
    // infinite
    var loading = false;
    $(document.body).infinite().on("infinite", function() {
        if(loading) return;
        loading = true;
        setTimeout(function() {
            $("#list").append('<div class="pro-items"><a href="pro_info.html" class="weui-media-box weui-media-box_appmsg"><div class="weui-media-box__hd"><img class="weui-media-box__thumb" src="pic/cp02.jpg" alt=""></div><div class="weui-media-box__bd"><h1 class="weui-media-box__desc">天然原味腰果 原色无漂白原味腰果仁</h1><div class="wy-pro-pri">¥<em class="num font-15">296.00</em></div><ul class="weui-media-box__info prolist-ul"><li class="weui-media-box__info__meta">重庆市江北区</li></ul></div></a></div>');
            loading = false;
        }, 2000);
    });
</script>
</body>
</html>
